<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/4/28
  Time: 13:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>My JSP 'recerve.jsp' starting page</title>

</head>

<body>
<%
    request.setCharacterEncoding("utf-8");
    String username=request.getParameter("username");
    String sex=request.getParameter("sex");
    String myDescription=request.getParameter("myDescription");
    out.println("姓名："+username+"<BR>");
    out.println("性别："+sex+"<BR>");
    out.println("兴趣：");
    String[] interest=request.getParameterValues("interest");
    if(interest==null){
        out.println("你没有任何兴趣！");
    }else{
        for(int i=0;i<interest.length;i++){
            out.println(interest[i]+" ");
        }
    }
    out.println("自我描述："+myDescription+"<BR>");
%>
</body>
</html>
